<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>win10-ui</title>
    <link rel='Shortcut Icon' type='image/x-icon' href='./img/windows.ico'>
    <script type="text/javascript" src="./js/jquery-2.2.4.min.js"></script>
    <link href="./css/animate.css" rel="stylesheet">
    <script type="text/javascript" src="./component/layer-v3.0.3/layer/layer.js"></script>
    <link rel="stylesheet" href="./component/font-awesome-4.7.0/css/font-awesome.min.css">
    <link href="./css/default.css" rel="stylesheet">
    <script type="text/javascript" src="./js/win10.js"></script>
    <style>
        * {
            font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu
        }
    </style>
    <script>
        Win10.onReady(function () {
            Win10.setAnimated([
                'animated flip',
                'animated bounceIn',
            ], 0.01);
            setTimeout(function () {
                Win10.newMsg('推荐全屏', '按下F11全屏以达到最佳视觉效果')
            }, 1500)
        });
    </script>
</head>
<body>
<div id="win10">
    <img id="win10_img_loader1" class="img-loader" src="./img/wallpapers/windows.jpg">
    <img id="win10_img_loader2" class="img-loader" src="./img/wallpapers/login.jpg">
    <div class="desktop">
        <div id="win10-shortcuts" class="shortcuts-hidden">
            <div class="shortcut" onclick="Win10.openUrl('https://yuri2.cn','尤里2号的博客')">
                <div class="icon"><img src="img/icon/blogger.png"/></div>
                <div class="title">Yuri2's Blog</div>
            </div>
            <div class="shortcut" onclick="Win10.openUrl('./doc.html','开发文档')">
                <div class="icon"><img src="img/icon/doc.png"/></div>
                <div class="title">开发文档</div>
            </div>
            <div class="shortcut" onclick="window.open('https://github.com/yuri2peter/win10-ui')">
                <div class="icon"><img src="img/icon/github.png"/></div>
                <div class="title">github</div>
            </div>
            <div class="shortcut" onclick="Win10.openUrl('https://www.oschina.net/p/win10-ui','开源中国（求支持~）')">
                <div class="icon"><img src="img/icon/kyzg.png"/></div>
                <div class="title">开源中国</div>
            </div>
            <div class="shortcut" onclick="window.open('https://github.com/yuri2peter/win10-ui/archive/master.zip')">
                <div class="icon"><img src="img/icon/download.png"/></div>
                <div class="title">快速获取</div>
            </div>
        </div>
    </div>
    <div id="win10-menu" class="hidden">
        <div class="list win10-menu-hidden animated animated-slideOutLeft">
            <div class="item"><span class=" icon fa fa-wrench fa-fw"></span><span>API测试</span></div>
            <div class="sub-item" onclick="Win10.openUrl('https://yuri2.cn','测试窗口')">打开网页</div>
            <div class="sub-item" onclick="Win10.logout()">登录界面</div>
            <div class="sub-item" onclick="Win10.commandCenterOpen()">打开消息中心</div>
            <div class="sub-item" onclick="Win10.newMsg('API测试','通过API可以发送消息至消息中心，自定义标题与内容')">发送消息</div>
            <div class="sub-item" onclick="Win10.menuClose()">关闭菜单</div>
            <div class="item" onclick="
layer.open({
    type:1,
    closeBtn: 1, //不显示关闭按钮
    anim: 2,
    skin: 'layui-layer-molv',
    title:'win10-ui v1.0',
    shadeClose: true, //开启遮罩关闭
    area: ['420px', '240px'], //宽高
    content: '<div style=\'padding: 10px\'>' +
     '<p>支持组件:layer、jquery、animated.css、font-awesome</p>' +
     '<p>尤里2号©版权所有</p>' +
     '<p>作者邮箱:yuri2peter@qq.com</p>' +
      '</div>'
  });
            "><span class=" icon fa fa-star fa-fw"></span>关于
            </div>
            <div class="item" onclick="Win10.logout()"><span class=" icon fa fa-user-o fa-fw"></span>注销</div>
            <div class="item" onclick="
layer.confirm('确认要关闭本页吗?', {icon: 3, title:'提示'}, function(index){
  Win10.exit();
  layer.close(index);
});
            "><span class=" icon fa fa-window-close fa-fw"></span>关闭
            </div>
        </div>
        <div class="blocks">
            <style>
                /*磁贴自定义样式*/
                .win10-block-content-text{
                    line-height: 44px;
                    text-align: center;
                    font-size: 16px;
                }
            </style>
            <div class="menu_group">
                <div class="title">
                    常用场景(宽屏)
                </div>
                <div loc="1,1" size="4,3" class="block">
                    <div class="content" style="background-color: orangered">
                        <div class="win10-block-content-text" style="font-size: 26px;line-height: 88px">WIN10-UI</div>
                        <div class="win10-block-content-text">显示信息</div>
                    </div>
                </div>
                <div loc="5,1" size="2,1" class="block">
                    <div class="content" style="background-color: green">
                        <div  class="win10-block-content-text">文字按钮</div>
                    </div>
                </div>
                <div loc="5,2" size="2,2" class="block">
                    <div class="content">
                        <img style="width: 40px;height: 40px;margin: 2px auto;display: block" src="./img/icon/baidu.png">
                        <div class="win10-block-content-text">图标按钮</div>
                    </div>
                </div>
                <div loc="1,4" size="6,3" class="block">
                    <div class="content" style="background: url('./img/presentation/1.png');background-size: auto">
                        <div style="line-height:132px;text-align: center;">显示图片</div>
                    </div>
                </div>
                <div loc="1,7" size="2,1" class="block">
                    <div class="content" style="background-color: grey" onclick="Win10.openUrl('//www.baidu.com')">
                        <div class="win10-block-content-text">内部链接</div>
                    </div>
                </div>
                <div loc="3,7" size="2,1" class="block">
                    <div class="content" style="background-color: blue" onclick="window.open('https://www.baidu.com')">
                        <div class="win10-block-content-text">外部链接</div>
                    </div>
                </div>
            </div>
            <div class="menu_group">
                <div class="title">
                    方块布局
                </div>
                <div loc="1,1" size="4,4" class="block">
                    <div class="content" style="background-color: red">4*4</div>
                </div>
                <div loc="5,1" size="2,2" class="block">
                    <div class="content" style="background-color: blue">2*2</div>
                </div>
                <div loc="5,3" size="1,2" class="block">
                    <div class="content" style="background-color: green">1*2</div>
                </div>
                <div loc="6,3" size="1,1" class="block">
                    <div class="content" style="background-color: yellow">1*1</div>
                </div>
                <div loc="6,4" size="1,1" class="block">
                    <div class="content" style="background-color: black">1*1</div>
                </div>
                <div loc="2,6" size="1,1" class="block">
                    <div class="content" style="background-color: red">1*1</div>
                </div>
                <div loc="1,5" size="1,1" class="block">
                    <div class="content" style="background-color: orangered">1*1</div>
                </div>
                <div loc="4,6" size="1,1" class="block">
                    <div class="content" style="background-color: yellow">1*1</div>
                </div>
                <div loc="3,5" size="1,1" class="block">
                    <div class="content" style="background-color: green">1*1</div>
                </div>
                <div loc="6,6" size="1,1" class="block">
                    <div class="content" style="background-color: darkslategray">1*1</div>
                </div>
                <div loc="5,5" size="1,1" class="block">
                    <div class="content" style="background-color: blue">1*1</div>
                </div>
            </div>
        </div>
        <div id="win10-menu-switcher"></div>
    </div>
    <div id="win10_command_center" class="hidden_right">
        <div class="title">
            <h4 style="float: left">消息中心 </h4>
            <span id="win10_btn_command_center_clean_all">全部清除</span>
        </div>
        <div class="msgs"></div>
    </div>
    <div id="win10_task_bar">
        <div id="win10_btn_group_left" class="btn_group">
            <div id="win10_btn_win" class="btn"><span class="fa fa-windows"></span></div>
            <div class="btn" id="win10-btn-browser"><span class="fa fa-internet-explorer"></span></div>
        </div>
        <div id="win10_btn_group_middle" class="btn_group"></div>
        <div id="win10_btn_group_right" class="btn_group">
            <div class="btn" id="win10_btn_time">
                <!--0:00<br/>-->
                <!--1993/8/13-->
            </div>
            <div class="btn" id="win10_btn_command"><span id="win10-msg-nof" class="fa fa-comment-o"></span></div>
            <div class="btn" id="win10_btn_show_desktop"></div>
        </div>
    </div>

    <!--    自定义登录页面-->
    <style>
        #win10-login-box {
            width: 40%;
            overflow: hidden;
            margin: 0 auto;
            min-width: 360px;
        }

        .win10-login-box-square {
            width: 35%;
            margin: 0 auto;
            border-radius: 50%;
            background-color: darkgray;
            position: relative;
            overflow: hidden;
        }

        .win10-login-box-square::after {
            content: "";
            display: block;
            padding-bottom: 100%;
        }

        .win10-login-box-square .content {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        #win10-form-login {
            width: 100%;
        }

        #win10-form-login input.text {
            width: 50%;
            display: block;
            border: 0;
            margin: 0 auto;
            line-height: 36px;
            font-size: 20px;
            padding: 0 1em;
        }
    </style>
    <div id="win10-login" class=""> <!-- 为#win10-login 添加class : top 默认显示登录页 -->
        <div style="height: 10%;min-height: 120px"></div>
        <div id="win10-login-box">
            <div class="win10-login-box-square">
                <img src="./img/avatar.gif" class="content"/>
            </div>
            <p style="font-size: 30px;color: white;text-align: center">游客</p>
            <form id="win10-form-login" action="#" onsubmit="Win10.login();return false;">
                <input class="text" type="password">
            </form>
        </div>
    </div>
</div>
</body>
</html>